package com.supermap.component.impl;

import java.util.List;
import java.util.Set;

import com.supermap.commontypes.SampleInfo;
import com.supermap.component.SampleComponent;
import com.supermap.dao.SampleDao;

public class SampleComponentImpl implements SampleComponent {

    private SampleDao sampleDao;

    public SampleComponentImpl(SampleDao sampleDao) {
        this.sampleDao = sampleDao;
    }

    public List<SampleInfo> readSample() {
        return sampleDao.readSample();
    }

    public void saveSample(Set<SampleInfo> sampleInfos) {
        sampleDao.saveSample(sampleInfos);
    }

}
